package v1

import "github.com/gogf/gf/v2/frame/g"

type AddResumeReq struct {
	g.Meta `path:"/resume/add" tags:"Resume" method:"post" summary:"添加简历"`
	ResumeBase
}
type AddResumeRes struct {
	Id uint64 `json:"id"`
}

type UpdateResumeReq struct {
	g.Meta `path:"/resume/update" tags:"Resume" method:"post" summary:"更新简历"`
	Id     uint64 `json:"id"      v:"min:1|required" dc:"更新的简历ID"`
	ResumeBase
}

type UpdateResumeRes struct {
	Id uint64 `json:"id"`
}
type GetResumeReq struct {
	g.Meta `path:"/resume/{Id}" tags:"Resume" method:"get" summary:"查询简历"`
	Id     uint64 `json:"id"      v:"min:1|required" dc:"简历ID"`
}

type GetResumeRes struct {
	Id uint64 `json:"id"      v:"min:1|required" dc:"更新的简历ID"`
	ResumeBase
}

type GetListReq struct {
	g.Meta `path:"/resumelist" tags:"Resume" method:"get" summary:"分页查询简历"`
	Page   uint `json:"page"`
	Size   uint `json:"size"`
}

type GetListRes struct {
	Page  uint `json:"page"`
	Size  uint `json:"size"`
	Total uint `json:"total"`
	//ResumeList interface{} `json:"resumelist" description:"列表"`
	ResumeList []ResumeListBase `json:"resumelist" description:"列表"`
}

type ResumeBase struct {
	ResumeName string `json:"resumeName" v:"required#用户名不能为空" dc:"简历名称"`
	Data       string `json:"data" v:"required" dc:"简历内容"`
}

type ResumeListBase struct {
	Id         uint64
	ResumeName string
	Data       string
}
